home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_gen_sparksblue.cog < prev    next >
Text File  |  1999-11-15  |  944b  |  46 lines

  1. # Jones 3D Cog Script
  2. #
  3. # gen_SparksBlue.cog
  4. #
  5. # Generates animated blue sparks from the master.tpl
  6. #
  7. # [TRM]
  8. #
  9. # (C) 1998 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13.     
  14.     message    startup
  15.     message    pulse
  16.     
  17.     thing        origin
  18.     
  19.     template    tplBlueSparks=bluesparks    local
  20.         
  21.     material    mat1=gen_a4sprite_flash_purple.mat  local
  22.     
  23.     flex        pulsetime=0.25
  24.     
  25. end
  26.  
  27. # ========================================================================================
  28. code
  29.  
  30. startup:
  31.  
  32.     setpulse(pulsetime);
  33.     MaterialAnim(mat1, 10, 1);
  34.     return;
  35.  
  36. # ========================================================================================
  37.  
  38. pulse:
  39.     
  40.     CreateThing(tplBlueSparks, origin);
  41.     return;
  42.     
  43. # ========================================================================================
  44.  
  45. end
  46.